﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.Enums;

namespace Model.Models.Auto
{
    [SugarTable("sys_Department")]
    public class Department : BaseDBModel
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        [StringLength(100)]
        [Description("部门名称")]
        public string Name { get; set; } = "";

        /// <summary>
        /// 部门编码
        /// </summary>
        [StringLength(100)]
        [Description("部门编码")]
        public string Code { get; set; } = "";

        /// <summary>
        /// 部门父级Id
        /// </summary>
        [StringLength(100)]
        [Description("部门父级Id")]
        public string ParentId { get; set; } = "";


        /// <summary>
        /// 部门类型
        /// </summary>
        [Description("部门类型")]
        public EnumDepartmentType Type { get; set; }
    }
}
